package com.tencreat.domain.mall.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 订单对象 mall_order
 *
 * @author tencreat
 * @date 2021-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@ExcelIgnoreUnannotated
public class MallSupplierOrderVO5 extends BaseEntity<MallSupplierOrderVO5> {
    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号",order = 1)
    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    @ExcelProperty(value = "商品ID",order = 2)
    @ColumnWidth(9)
    private Long goodsId;

    @ExcelProperty(value = "商品名称",order = 3)
    private String goodsName;


    @ApiModelProperty("供应商名称")
    @ExcelProperty(order = 4,value = "供应商名称")
    private String username;

    @ApiModelProperty("一级分类")
    @ExcelProperty(order = 4,value = "一级分类")
    private String oneLevel;

    @ApiModelProperty("二级分类")
    @ExcelProperty(order = 4,value = "二级分类")
    private String twoLevel;

    @ApiModelProperty("商品规格")
    @ExcelProperty(order = 5,value = "商品规格")
    private String attribute;

    @ExcelProperty(value = "商品类型",order = 6)
    @ApiModelProperty(value = "订单类型")
    private String orderTypeDesc;

    @ExcelProperty(value = "数量",order = 7)
    private Integer goodsNum;

    @ExcelProperty(value = "货款",order = 8)
    @ApiModelProperty("货款")
    private BigDecimal payGoods;

    @ExcelProperty(value = "订单备注",order = 9)
    @ApiModelProperty(value = "用户订单留言")
    private String message;

    @ExcelProperty(value = "付款方式",order = 10)
    @ApiModelProperty(value = "支付方式")
    @TableField(exist = false)
    private String payTypeDesc;

    @ExcelProperty(value = "订单状态",order = 11)
    @ApiModelProperty(value = "订单状态")
    @TableField(exist = false)
    private String orderStatusDesc;

    @ApiModelProperty("创建时间")
    @ExcelProperty(value = "下单时间",order = 13)
    @ColumnWidth(18)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime2;
}
